package com.yalu.dao.data.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.jdbc.support.rowset.SqlRowSet;
import org.springframework.stereotype.Repository;

import com.yalu.dao.base.impl.BaseJDBCDaoImpl;
import com.yalu.dao.data.NetworkioReportDao;
import com.yalu.util.ReportExportUtil;

import core.report.yearReport.bean.Networkio;

@Repository
public class NetworkioReportDaoImpl extends BaseJDBCDaoImpl implements NetworkioReportDao{

	@Override
	public List<Networkio> getNetworkioReportDataBeanList(
			String dateType, String beginTime, String endTime) {
		List<Networkio> dataList = new ArrayList<Networkio>();
		String sql = ReportExportUtil.getNetworkioReportSql(dateType, beginTime,endTime);
		SqlRowSet rs = executeQuery(sql);
		System.out.println(sql);
		while(rs.next()){
			Networkio bean = new Networkio(rs);
			dataList.add(bean);
		}
		return dataList;
	}
	


}